package stiletto.user.dao;

import stiletto.user.domain.User;

import javax.persistence.EntityManager;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: 82022170
 * Date: 13. 10. 28
 * Time: 오후 3:55
 * To change this template use File | Settings | File Templates.
 */

public interface UserDao {
  /**
   * @param user
   */
  public void insert(User user);

  /**
   * @param user
   */
  public void update(User user);

  /**
   * @param user DB에서 삭제(delete)할 사용자
   */
  public void delete(User user);

  /**
   * @param email
   * @return
   */
  public User findOneUser(String email);

  /**
   * @param screenName
   * @return
   */

  public List<User> findUsersByScreenName(String screenName);

  /**
   * @return
   */
  public List<User> findAllUsers();
}
